import axios from '@/assets/axios/axios'

/**
 * 
 * @returns 
 */
export const recommend=()=>axios.get('recommend/appIndex')

/**
 * 
 * @param {*} id 
 * @returns 
 */
export const courseInfo=(basis_id)=>axios.get(`courseInfo/basis_id=${basis_id}`)

/**
 * 
 * @returns 
 */
export const getBanner=()=>axios.get('banner',{
    headers:{
        DeviceType: 'H5'
    }
})

/**
 * 
 * @param {*} id 
 * @returns 
 */
export const getTeacher=(id)=>axios.get(`teacher/${id}`)

/**
 * 
 * @param {*} id 
 * @returns 
 */
export const getCollect=(id)=>axios.get(`teacher/collect/${id}`)

